Do not use visual category from ways if ways have different visual categories.
Differential Revision: https://phabricator.kde.org/D505