Fixed an NPE upon timeout