Add asserts for non-null host pointers to command_queue

This adds assert()'s to the read and write methods in the
command_queue class to check for null host_ptr's.