Avoiding crash by generating layout stubs even when we can't parse layout