fix for IE issue with empty objects as params to apply