if only one attribute is requested, the returned array has 0 as key instead of attribute name. fixes #10888