Restore API check for setCompressedLayoutHeirarchy