Ensure thenFinally callback is called even if deferred has already been 
resolved or rejected