Added missing check for size of VertexBuffer