TIMOB-13671- add checking only for TicompositLayout.LayoutParam

Added checking for TicompositLayout.LayoutParam
https://jira.appcelerator.org/browse/TIMOB-13671