Fix js error: Cannot read property 'parts' of undefined

Bug: 67475
Change-Id: Iafae89e9dccedca2bd6fad6d575f44a17f397a17
Merge "Fix js error: Cannot read property 'parts' of undefined"