Fix for #65: large number of solution flagged.
Created by: aroffringa
Caused by NaNs in the data that were no longer set to 0. Setting to zero was unintentionally skipped when #49 was implemented, particularly in commit 8ee62bf3 .
While testing I noticed a non-existing sourcedb causes very weird behaviour, so I added a check for this as well.