Fix #661, #662: String comparison to translated string causes crash