Adds a sanity check

Adds a new sanity check in chula_buffer_read_from_fd() to make sure
the fd provided is actually valid.
Adds a new QA test to cover the chula_buffer_read_from_fd() function.