MAGE-364: EAV cache is broken
- added backward compatibility with attributes which are absent in db but present in xml config for some reason