Guard against nil locations