Empty attributes will be changed to "nil"

Some attributes such as referrer or session_id might be empty. Dynamodb won't allow empty attributes so we will change it into "nil"