Code is working correctly now.
Due to gostDriver issue, the exeption generated by click button is ignored.
Hope it will be solved when phantomjs is updated to 1.9.2.
Current version is 1.9.0