Don't crash if edit/delete layer is pressed on empty component