RF-13117: Moved the resizeEventName property definition to before the ready event listener, and implemented undefined checks in the resizeListener methods