Only set imenu-generic-expression if already set