Check if ParsedMainComponent is null before dereferencing

Bug: 240151494
Test: m
Change-Id: I2d225efa747df06cb7513d7ace84a06de67ee895
1 file changed