Fix #on_complete on pre-resolved and pre-failed futures