Removed Undefined

Added in a null test which stops the “undefineds” from showing up in
HTML output. Working commit.