Fix wrong check when adding hash fragment

Doing wrong check when adding new hash fragment in extention method.

<!---
@huboard:{"order":435.75,"milestone_order":543.0,"custom_state":""}
-->