Use the photo ID as the title if the title is empty

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