Inspect .errno only on EnvironmentError in WABS support

Previously, it would seem other exceptions would crash the program if
an errno was not present, and EnvironmentError typically is a parent
of exceptions that yield an errno.