implement MessageQueue#empty()
fix to return error with MessageQueue#recv() if empty