fixed realm URI computation for the case of non absolute uri, null query, and not omit query
Merge pull request #578 from eugene-ivakhno/fix-realm-uri-for-null-query

Fixed realm URI computation for the case of non absolute uri, null query, and not omit query