Fix debugger for case where error is null

Because null is typeof "object".  How could I forget.