Fixed possible NOTICE
userName might not be available, for instance when the build was started via the build bot on IRC
Merge pull request #2 from christeredvartsen/master

Fixed a couple of possible E_NOTICE's