Handle empty length parameter on decoder side

OpenGL standard allows empty length parameter and we should
handle it properly to avoid crashing emulator.

Change-Id: I3bd5da19461da0c1f84138a197ae770091458b57
(cherry picked from commit f3e18524d036044e416647bb0a86ecaa270b3494)
1 file changed