Rare bug where the plugin does not recognize selection/artboard/document
Not sure what is causing this. I think it may be more of a Sketch bug than one of my own, but I have a fallback in mind.

Workaround:

Close and reopen the document.
