Avoid creation of array (even via varargs) when debug is not enabled

(cherry picked from commit cb0197477b88c381b15f4c8550f11ab57fc873a0)
Wicket 6.x uses old version of SLF4J without varargs.