Fixes an issue where the ambient layout could be null

Change-Id: I0dd190b2349445fbaafe4a5b612619e2dd002539
Fixes: 123247127
1 file changed