Why does this technique require the removal of the bootloader? Doesn't the bootloader run only once when the board is initially powered up, and from then on it's never executed again unless you press reset or the PC attempts to initiate a serial connection?
(I assume the code that performs that check is part of your sketch, not the bootloader itself.)