added flag set to true during onLayout. The flag is used so we don't try to calculate dimensions of a view that might become null during layout (say if we are removing views)
Merge branch 'onLayoutViewNullFix'
When onLayout is called, if we are removing views they may become null anytime. We must not try to calculate their dimensions during this time.