Fix selections of invalid locations
Add lock to prevent multiple ErrorHandler dialogs concurrently