Optimize ArticleStorageDB->ArticleAttachmentIndexRaw

by only calculating ContentPath if it is needed