Removes the item at the given key and returns the removed item if present, and null otherwise.
The key to remove the item at.