Added a check for the pipe type to hybridise().
Authored by: bugman 2009-05-12
Parent: [r9054]
Child: [r9056]