[Bug 1181] Add missing exception in enqueueWaitForEvents