Fixed uncaught exception when reject promise during logout and switch community.
Fixed uncaught exception when reject promise during logout and switch community.

AndreyTepaykin/Platform,AndreyTepaykin/Platform,AndreyTepaykin/Platform,AndreyTepaykin/Platform