Return NULL if there is an error in unserialize