After upgrading to views 3, I discover that this is not working anymore.
I think that it is a views_attach issue, cause even if there is no photo in a brand new gallery, the message
"No photos has been added to this gallery" is not displaying at all.
Is someone managed to get this working with Views 3 ?