[MRG]Added has_fit_parameter method

Fixes #3711 
Ping @mblondel 
Do the check in `weight_boosting.py`. Also add a test with an `assert_raises` to `test_weight_boosting.py`.