buffer: fix regression in buffer.slice

4c9b30d introduced a change that explicitely initializes buffer.parent
to null. However, buffer.slice explicitely tests if buffer.parent is
undefined. This test had not been updated to account for buffer.parent
being null. This change fixes this regression.