fix: return null instead of "" if getDataFromPath encounters an empty object