Fixes a detect in get_user_agent
Fixes a detect in get_user_agent

The default value for platform is None, and should this value be left unset, an attempt would be made to call the `upper` method upon it
jkwill87/mapi