Fix error reporting when no main style file found