Fixed undefined error on null input. setStatus when an error has occured