correctly handle nil Riak properties
add SQL properties