getDefaultLocation(): check for wrong data. Closes #231.