NH-3253 (2.1.x): Test case and fix suggestion.

<a href="https://nhibernate.jira.com/browse/NH-3253">NH-3253</a> (2.1.x): Test case and fix suggestion.