Allow passing nil to ThenFunc