Hot fix: check if the current resolved controller responds to paramsBeforeFilter method. Otherwise the application crash.