TUP-2091: remove empty reference from build list and classpath.