Check to prevent NPEs on InputEvents.class