fixed npe if the elevator is not in the Hashmap