Follow-up f9e8c5057: fix JS error
Bug: T114833 Change-Id: I73d37a0688165125db56c1d6c088f215b19f421e (cherry picked from commit 983c7a2463810b699ab0c6f619ca8c9e2e647000)