Fix problem with uncalled promise errback