[JENKINS-13567] Diagnosis for an NPE.

Not exactly a fix for [JENKINS-13567](https://issues.jenkins-ci.org/browse/JENKINS-13567) but at least clearer diagnosis. `AbstractBuild.getWorkspace` is `@CheckForNull` for a reason.