Fix JS error when language is source language

Change-Id: I3a7170dfd0efb5294d0f491c17a15832ce4dd501
Merge "Fix JS error when language is source language"