Fix bugs in ProfilePhotoController.

Fix error when unchecking "primary" checkbox.
Unset Person#profile_photo_id if ProfilePhoto is deleted.
Flash message when ProfilePhoto can't be created.