Prevents infinite loop if a camera takes a picture of an atom with null in either it's overlays or underlays.
Merge pull request #7357 from mwerezak/infinity

Prevents infinite loop