completion: fix zsh check under bash with 'set -u'