Fix a couple edge cases to prevent creating a capture range inside an atomic element