fix error when search does not return 'year'

Thanks for a great plugin!

When adding a new movie, the search results sometimes do not contain 'year' for every movie returned (for example when searching for 'godfather')
This will cause the plugin to crash. The pull request changes this so that year is only shown when available.