Fix ActionView::Template::Error (undefined method `split' for nil:NilClass)