Fixes UserActivityEventHandler::removeEvents() if objectID array is empty