title: Cannot read property 'title' of undefined in angular2
body: <p>My component</p>
  
  <pre><code>export class MoviedetailComponent implements OnInit {
   movie:any
  
   constructor(
    private getmovie: GetmovieService,
    private router: Router,
    private rout: ActivatedRoute
   ) { }
  
   ngOnInit() {
     this.rout.params
     .switchMap((params: Params) =&gt; 
     this.getmovie.getMovieById(+params['id']))
     .subscribe(movie =&gt; {
      this.movie = movie;
      console.log(this.movie);
   });
  
   }
  
  }
  </code></pre>
  
  <p>my html</p>
  
  <pre><code>&lt;p&gt;{{movie.title}}&lt;/p&gt;
  </code></pre>
  
  <p>So when I load the page, it shows the content of movie.tittle, but there is also an error in console saying "Cannot read property 'title' of undefined"</p>
  
  <p>Any ideas?</p>