coregl_fastpath: Fix NULL pointer access