Only set catkin_* variables when being invoked with find_package COMPONENTS

This is a necessary change to support ros/rosdistro#3010.

@tfoote @wjwwood Please review and consider potential side effects. Is it possible / reasonable to backport this? Otherwise it will force a lot of packages to have a separate indigo branch (which they might not yet have).