sf: Clear FrameBuffer only if there are GLES composed layers

Clear FrameBuffer Target only if there are layers to be composed by
GLES. Otherwise, it results unnecessary gl calls and increases power
consumption in full MDP comp use cases.

Change-Id: Ib84c4fe154bb67668e4e8b8ce2f2328c55aed7c6
Fix a null dereference.

Change-Id: I7224c3368ff414620062bc08b80a6a94d55d7931
Merge pull request #4 from DirtyUnicorns-KitKat/du44

merged