Fix onready dead-end (bug 1061923)