HTMLRenderer: fix potential null error in onPlatformMouseWheelEvent()