isActive method could give NullPointerException

A pump with an empty "block list" would cause NullPointerException if
isActive was called.
Merge pull request #1118 from SandGrainOne/master

isActive method can give NullPointerException