0005377 - added check for unserialize result (cherry picked from commit 6380e54)