joint_trajectory_controller: Critical targets declared before calling catkin_package

This should also be backported to hydro-devel.