Fix bug with QImageIOPlugin::Capabilities()

I had fetched the lastest sources, compiled it and found it doesn't work. This is caused by QImageIOPlugin::Capabilities(), since it couldn't determine whether the format supportting. Then I fix it.