Fix crash on invalid key path

Fixed a crash when an invalid key path is indicated for a key in the JSONKeyPathsByPropertyKey method