hwc2: Avoid flush on command mode with secure display

- set validate if layer stack is empty,
  to support flush.

Change-Id: Ib9ac87dba3d4e5b1c92571c19eb70f426105ea06
CRs-fixed: 2391942
1 file changed