Fixed NPE when deleting multiple selected model elements.