Remove null values in capabilities

This is a very minor change to fix compatibility problems with firefox browser.