check isset before using server variable
-w
Merge pull request #2313 from rossriley/nut-fixes

check isset before using server variable