Fix #315

Signed-off-by: Matt White <matthew.white@fclonline.com>
Fix bug when opening document with no photo attached

Signed-off-by: Matt White <matthew.white@fclonline.com>