Check that the profile is an RGB profile before checking if it's bogus

This avoids unitialized reads on non-RGB profiles.
1 file changed