Upper critical field in dirty two-band superconductors: breakdown of the anisotropic Ginzburg-Landau theory