Fix notice if outputting without a view