setting number of quads to zero in QuadBatch dispose method

That should prevent any problems when the batch is rendered after it was disposed. While that's not a good practice, it's better if the framework doesn't fail in that situation.