Avoid NPE for corrupted resources on backup, open query dialog, listing ...

...and intentional removal of them in java admin client.