Prevent NPE on missing layers
Fix not Sqlite Layers not drawing
Fix typo on class name