Converting a color attribute to a non-color domain or type causes vertex paint mode to try to change the attribute even though it's unsupported. That leads to a crash here and unpredictable behavior elsewhere. This PR modifies some poll functions to check for the proper domain and data type before continuing. Even if converting an attribute properly updates the active color attribute, we can still run into situations where the active name references an attribute with incorrect metadata. Pull Request: https://projects.blender.org/blender/blender/pulls/119657