Some convuluted formual known as "modulus 11" somehow validates the branch sort code with the account number (last two digits I think). If you are unfortunate enough to choose the "right" wrong number it may still validate.
....Still find the story a bit strange tho'