pyldb: Don't segfault when invalid type is specified to as_sddl and from_sddl.