Fix a bug where certain JSON path expressions would spuriously fail.