resolves missing location id when creating a new location