Made 2nd param of toHaveAttr/toHaveProp optional

Made the second parameter of toHaveAttr() / toHaveProp() optional.