PLANNER-243 NullPointerException in VariableListenerSupport if an entity gets added and its class extends another entity class
(cherry picked from commit fc0ea1bf20eddcff0bd8253ebb58015d6f319f56)