Atmel debugger: erase bootloader?
There are two ways to fix this:  


Tell the programmer to erase sectors instead of the full chip.   
Try and link the binary of the bootloader in your debug image. This way when the programmer loads the image, the bootloader is included.