fix bug #1809 should not be able to delete photo of child registered with only the photo by  Li Ke