fix #660 by checking if options is undefined
fix #660 by checking if options is undefined

- a complete fix with a consistent support of alias in all use cases is not obvious (see #660 for explanations)

grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana