Fix for #1908: call collectstatic in kaserve when DEBUG=False.