Detect bad mipmap sizes, autogen mipmaps in this case. Might help part of #2603

(outrun)