Make checks of presence in the roster not case sensitive. So, if someone passes in someUser@example.com, it matches someuser@example.com (which is what will probably be saved in the presenced map).
From checking the code, this bug should already be fixed.