Update knowledgebase_controller.rb

Some minor codecleanup.