fix[#3516586]: add nullsafe operator to fix 500 error when location field is empty