Prevent atoms from being placed inside obstacles

[#45233261]