Checking for an empty entity reference field in hook_node_validate
Take a look at entityreference_field_is_empty(), which at least will get you up a level by checking if target_id is empty on your behalf.