Add error msg to ensure valid Buffer object

On initialization it was possible to pass an invalid object, which was
ignored. Instead throw and tell the user the usage was incorrect.

Signed-off-by: Trevor Norris <trev.norris@gmail.com>