fix issue with `nil` errors triggering error text