Fixed NPE when editing sling.js (Fixes #17)