Check return value of Buffer(0) function.

This might be a solution for issue #8.