fixing small bug in prepare_message method: type object argument after *...

...* must be a mapping, not NoneType

The "properties" params is passed with ** so it can't be None, just using {} if None to avoid error:

type object argument after ** must be a mapping, not NoneType