Check not released to avoid native crash

If we modify some property of a SurfaceControl in a transaction
and that SurfaceControl is already released, it will generate
a native crash. Check on the Java side already to avoid native
crash (and loose the stack trace).

Test: Boots
Change-Id: I19b1394daba46e37f8f0c4cfecc0ff99b9859837
1 file changed