iOS: Fix bug crashing settings when managing location