Fix JS error on pages with no alternative languages

Change-Id: Iec793a504daecea201856a9fef820488cf706f82