Corrects a bug experienced with external auth enabled
Simply adds a boundary check to see if the user exists
before attempting to access it's members.

(cherry picked from commit 20b2bd1f33ddf1d50870c2f8699d41e3c3f6b590)