guard against npe in ErrorsWidget