Fix attributes nil check condition being incorrect.