Trying to fix issue with asset precompile failing

When serve static assets is off, assets precompile fails. This should fix.