Fix JENKINS-20660 - null pointer exception on first run after upgrade 0.8 to 0.9

Avoid null pointer exception on first run of a job which uses the XShell plugin after upgrading from 0.8 to 0.9.

The null pointer exception happens in the perform method when it calls the constructor for the regular expression matcher with a null rather than an empty string.