Fix completion of install options without formula

Fixes #20084.