Check for non-null parent before delegating to it

Test: manual

bug:37289681

Change-Id: If3055747471d4b7771256d8adaaa08b73641c09d
1 file changed