Bugfix: Remove FileAnnotations when multiple images are selected
Made sure that DataObjects are of same type
Merge pull request #2640 from dominikl/rebased/dev_5_0/remove_last_file_annotation_3

Bugfix: Remove FileAnnotations when multiple images are selected (rebased onto dev_5_0)