Fix delete all features method

Apparently this should fix the delete all issue.

I believe selected features are also cleared with:

<pre>
layer.getSource().clear();
</pre>

@oterral Feel free to merge to fix it your way.