Fix error on startup in globalhelpers.js where user is null in "canAddAsFriend" function