Fixup printf for new Output function log GLDebug messages to output.txt
Guard against mapping and unmapping zero sized index buffers.