DS-2250: Incorrect detection of user sequences

This construct returns TRUE, even if the count of sequences is equal to zero = sequence doesn't exists (explanation in https://jira.duraspace.org/browse/DS-2250 and https://jira.duraspace.org/browse/DS-2244).
```
if(results!=null && results.next())
{
   exists = true;
}
```