Police were called after youths threw bottles, bricks and rocks at the firefighters in West Lothian.