libgimpbase: Avoid an assignment to self.

gimp_param_unit_value_validate() set a value to itself to not
change the value, which was strange though not particularly wrong.
Found by Coverity Scan.

This was also submitted to gimp here:
https://bugzilla.gnome.org/show_bug.cgi?id=741058