Fixes #6073 - search opts not built id-less params

Searchable options are not being build for commands that with actions
that do not have an param named id. This commit allows the searchable
options to be built without the action needing to define param :id.