Removes first item from the queue and returns it. If there is no more elements in the queue, it returns null.