#26 BinaryResourceState.attributeValue() add missing ID check.