Prevents infinite loop

Prevents infinite loop if a camera takes a picture of an atom with null in either it's overlays or underlays.

Kudos to @GinjaNinja32 for testing this.