Layout change button is blank in lock screen
This can be reproduced in Ubuntu Focal live image.
There is only one input source configured:
$ gsettings get org.gnome.desktop.input-sources sources
[('xkb', 'us')]
Only when you press the button once, it starts showing “en”.