This function checks if the key is present is the properties instance and returns its value.
Memory Concerns: Caller must not modify the value_ptr structure or free the memory.