Null passes lodash as undefined

using ``lodash.isUndefined`` on a ``null`` variable passes as true rather than false,
moves back to simple check for err in the if and remove err.red as colours only supports
string.