Add asserts for 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.