SES-1676 : Avoid throwing an exception in canCreateLiteral