Improving error handling && moving to 5.2 version

Thanks to Yuriy (id1862956) for bug-report;
API v5.2 changelist: https://vk.com/dev/versions.