re: Did Beagle have a self righting mechanism?...Yes.
Beagle 2 has a clamshell design. Imagine an old style pocket watch laying on a table. If it was upside down it just opens up and both sides are correctly orientated.
I think as Gary has pointed out the failure, if it happened, was just before landing, either with the parachute or airbags.
