check if fifo is empty in bsal_worker_thread_pull_message

Link: https://github.com/GeneAssembly/biosal/issues/49
Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>