fix for equals method when element id was 0

Hi, I figured out that element can get id = 0 and in this case param was not passed to the selenium server.