Return 0 if location is null for island calculation