Fix checking return value of has_gunmod.