Only offer completion if programmable completion is enabled

This also fixes the mildly annoying “zsh: command not found: complete”
error message from zsh.