c/util: Fixes a crash bug in `render_gfx_end_target` with non-compute pipeline path on certain android devices when zero layers are committed.