am da78c1dc: am c907eecd: Prevent NPE while viewing photo from attachment.

* commit 'da78c1dc07cd36e04c98f1d468b45766f1e0e0c6':
  Prevent NPE while viewing photo from attachment.