[TIMOB-14357] Android: TiViewProxy and TiCompositeLayout crashes due to NullPointerException

Fix for NullPointerException crash symptom
https://jira.appcelerator.org/browse/TIMOB-14357