Use the photo ID as the title if the title is empty. Resolves habari/habari#484.