fix off-by-one error which prevented AttributeExceptions to fall through on attribute getters

*sigh*