Fixed the bug with console not printing log and crashing Sketch in deferred calls. Fixes #11