Updated logic for testing for translucency

Change-Id: Ia0a342848350fe791c0b95472ac8e29f02d402da