Fix bug in array search when no jpath is defined