Fixed bug where user_id was not checked to be undefined.

git-svn-id: svn+sshtunnel://coge.iplantcollaborative.org/storage/SVN.d/CoGe@911 aead6680-5d07-0410-860c-d65e5a4cd256