[fix] fixes issue where running a regexp against a key to check if it is internal for the database throws because the key is not a string
[fix] fixes issue where running a regexp against a key to check if it is internal for the database throws because the key is not a string