per Drews recommendation, fix handling of null (undef) parameter passed into PS command