from-keywords: tolerate empty input keyword list

This simplifies the code in get_versions.py