Fix messages about @on_complete being undefined. Introduced in 83997f2f7...

...0ab3b29f7b54c5b11167ea6dd7b6d3e