Bug fix for cases with no spikes in external simulator. (this bug was introduced by a previous fix)