Fixes getUserByIdentity issue that was introduced in last release
This correctly handles the getUserByIdentity issue that was added #220. While that handled the issue, it also introduced a breaking change. This handles the issue and does not introduce a breaking change.