Fix issue when missing layout.

Some actions don't want to render with a view. Right now, that will
error because you can't gsub nil.