Re-program the Arduino Uno without losing a base (custom firmware) sketch

Can this be fixed with a custom boot loader?

If you are capable of writing one, yes.