Fixed error for case when attribute id goes without any value