Update WebDashboard2.groovy

Null pointer exception rectified