Corrected condition for when no atom is clicked