Fixed null pointer exception on update photo cancel.