The safest thing to do would have been to not waste the millisecond of decision time and just start breaking. Anytime you change lanes you are putting yourself at some risk, even with a good mirror. Instead of thinking about it just start braking. Its inconvenient but it has to be done. You are responsible for having enough room in front of you that you can come to a stop should the driver ahead do the same, even if you are cut off.