Fixed NullPointerException on timeout in WaitAction