xenserver: Add type-checking to monitor-external-ids script.