Modified the get_pipe() function to check if a data pipe exists.
Authored by: bugman 2009-02-05
Parent: [r8738]
Child: [r8740]