Fix TypeError: an integer is required

If a custom port is defined in the collector config, it's not
converted to an int.
Merge pull request #365 from jwilder/master

Fix TypeError: an integer is required in BeanstalkdCollector