Raise a warning for a pathway without any synapses instead of failing with a cryptic error message

Fixes #371
Merge pull request #372 from brian-team/fix_371

Raise a warning for a pathway without any synapses