Rejecting deferred when browser error