Fixed errors when <location[].direction[]> and <location[].destination[]> contain null contexts.