Harden script primitive against deserializer sentinel return.