Allow device==null in getWorkGroupInfo; switch to TypeError in eventWaitList validation