Fix a bug where we weren't properly copying the entire message response
when content-length was provided, but the whole message wasn't ready yet.
Fix some easy to fix mistakes in getItem and updateItem (checking input
types). Will need to apply same logic elsewhere.