s3-spoolss: fix incorrect error check type