added check for None in tag, jenkins != python