Issue #2458601 by Denchev, Berdir: statistics library is not loaded if node template doesn't print it