Add pointer check in main text deserialization
More paranoid checks