parse empty <location/> nodes correctly

fixes http://manage.dimagi.com/default.asp?131037