Avoid NPE for corrupted resources on backup, open query dialog, listing and intentional removal of them in java admin client.
Merge pull request #263 from ljo/develop

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