bugfix: ui#index (NoMethodError) "undefined method `empty?' for nil:NilClass"