Use gimp_babl_is_valid(), added in the previous commit, to validate image-type/precision combinations in various functions. (cherry picked from commit 49ca383f)