Check if file pointer is present before creating a new file pointer
p4#: 21295