Fix confusing exception in ActiveSupport delegation

Follow-up on #15186. I decided to change the existing test, as it did intend to cover this case, but failed to do so.