Call getElement to get layer
Merge pull request #1293 from tschaub/event-element

Correctly handle layer add/remove in modify interaction.