XWIKI-11125: WebJars can't be accessed if the current user doesn't have edit rights
Fixed.

(cherry picked from commit b96c0ea059b5e5200ffd560aa852a858aee8af2f)