A biker should ride with the mindset that a car driver has not seen them. This means not squeezing through gaps between cars, undertaking, and just generally not riding like a prick.
I always drive expecting other motorists to do the absolute worst possible, if I see an indicator then I just presume that the driver hasn't cancelled it etc. Any biker vs car accident will always come out with the motorcyclist worse off, I just don't know why the majority ride like complete cunts all the time, as if the law doesn't apply to them!