Remove erroneous return code in getattr's error handler.