Xdebug template fix if no attributes are given

Hehe, I forgot consider the case if no attributes are given.
This fixes it.

PS: Could not skip the new gitignores in this pull request, sry.