LUN-1333: fixed sites saving when not all sites are available for user
* imrpoved code readability
Merge pull request #39 from pbs/LUN-1333

LUN-1333: fixed sites saving when not all sites are available for user