fix #21476 - Fix and add non-regression test for IllegalStateException in ChangesetQuery.forCurrentUser when the current user is anonymous (patch by taylor.smock)