You can build as long as the bosses do not get stuck. This probably means you will have to build that tower closer to your army or find another way to make them use the wave skill in a way that you like, or accept the fact they use wave on your towers. Any use of a tower when you know that as a consequence it will make the game glitch is not tolerable.
Exploiting a glitch or bug is unfair behaviour, and is therefore already in the rules, but to be extremely clear about this we have added a rule concerning bugs and glitches:
15.
BUGS AND GLITCHES- Any use of game mechanics which results in a glitch or bug is forbidden.
This rule also means that bosses who get stuck by a glitch are not legitimately stuck and so anti-stucking those units is not a solution to this problem.
You don't stop playing because you grow old; you grow old because you stop playing.