Fix bogus error reporting when no param is passed in