Avoid SQL error if a user has no repository accesses
Fix XML templates for umbra theme