Raise a warning for a pathway without any synapses

A fairly straightforward fix for #371