Connections: fix raisePermanences with empty segment
Connections: fix raisePermanences with empty segment

on segment with no synapses, we simple skip the method (return), This
avoids the crash

breznak/nupic.core,breznak/nupic.core,breznak/nupic.core,breznak/nupic.core