Initial setup:

Train goes to station on right, stops before the lead locomotive completely passes the signal:

Train leaves for station on left, signal at bottom right stays yellow:

The presence or absence of any other signals before or after the stuck one makes no difference that I can find.