Check that a device buffer object has been initialised.
Debug routine: only executed for debug build.