[NX-506] Properly calculate error key out of violation property path

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>