validate case index domains

http://manage.dimagi.com/default.asp?120127

@dannyroberts 
This will also fail if any of the referenced cases are deleted. Not sure if that's desired or not.