redirectURL nil check added for handleRedirectURL

It throws nil exception when you have multiple account stores with and
without redirectURL. Nil check must be performed to prevent exception.
This change has nothing to do with the nil check the PR is about AFAIKT. Any reason why this is in here?