Revert "throwing error in query when property is not defined"

This reverts commit 269a5f4c055c0966641e51acea86012e6c239f84.