Starting plugin with no layer produces a python error
issue