JENKINS-20857 - Add some null checks to RunParameterValue

Hi,

Just adding some null checks to try and resolve NullPointerExceptions

thanks
Geoff