exit loop if no next recordSet present

Signed-off-by: Sebastian Schüpbach <sebastian.schuepbach@unibas.ch>
3 jobs for master in 6 minutes and 46 seconds (queued for 1 second)
Status Job ID Name Coverage
  Test
passed #71781
mbr
test-sbt

00:03:24

 
  Build
passed #71782
mbr
assembly-sbt

00:02:59

 
  Publish
passed #71783
mbr
build-latest-image

00:00:22