Don't crash if errorID is null

This can happen sometimes (but it's rare).