panfrost: Don't copy uniforms when the size is zero
This fixes a crash for debug builds when using Gallium HUD with QuakeSpasm when gamma correction shaders (a QuakeSpasm feature, not part of Mesa) are used.
There is probably a bug somewhere causing this but I think there is an argument to be made that having a uniform set of zero bytes is valid, so this is a feature, not a bug.