BZ-9554: Error check on serializer

Signed-off-by: Paden <padenportillo@gmail.com>