Guard against not having an Editor instance
Guard against not having an Editor instance

Fixes error caused by invoking `build` when there are no open files.

thomasjo/atom-latex,thomasjo/atom-latex,thomasjo/atom-latex,WoodyWoodsta/atom-latex,WoodyWoodsta/atom-latex