Fixing an user-reported problem

Our users reported that they see NPE because the 'user' variable is null. Looking at Hudson.getUser() I can't imagine how this can happen, OTOH if I remember correctly there were some past versions of Jenkins where this method did return null.

So while I generally hate to add a "fix" without understanding what's going on, this one seems like a small enough defensive fix that'd be justified.