Only use gon when html is rendered in work packages controller
Fix work package controller specs