PDI-10796 - Fix perf issue and integration test

Performance issue fix : check fields' existance only once ( if (first) ....)
Integration test fix: don't look for value meta if key is empty