Change for bug ID: 4843

This is a change to fix the issue : https://code.google.com/p/selenium/issues/detail?id=4843

This is my first submission, let me know if you have any issues with how I am doing this, as it is my first time and don't know any better.

I have signed the SLA. Unfortunately my work email (kdillon@mathworks.com) is different than my github email, so I can sign it twice if you need me to.