fix watch in angular not work well issue 

fix watch in angular not work well issue when variable from undefined to true