handled condition where an empty result set would result in an exception...

Mijn eerste pull request.. vergeef mij eventuele 'procedurefouten'

Groeten,

Filip