#JC-1510 Added handler for fail of image preview request
JC-1578 Renamed the method to isExists. Made formated the code.
Merge branch 'master' of ssh://github.com/jtalks-org/jcommune into jc1578.error500inPm