Allow controller actions to be optional

Minor changes to the codebase to allow actions on controllers to be
optional.