Ok, so they are only for mergers when regular shares have run out, correct?True.
How about this question then. If there are 2 railroads left, but one of them has run out of shares. Would that trigger the end of the game?"The game ends immediately when, at the end of any action, there are shares in only one Railway line available on the board."
That is taken from the rules and includes your situation.