removeLastOrNull

Removes and returns the last element, or null if the deque is empty.