Fixed bug in nsmcore that led to segfault for the singular case of 0 reactions