Fix missing submission bug

If a form has some submission before adding the restservice
then the next submission will trigger the dataset creation.
That very submission was missing and this commit fixes it.

Test has been added also.