added backward compatibility with attributes which are absent in db but present in xml config for some reason

- added backward compatibility with attributes which are absent in db but present in xml config for some reason