Added license header for embed.html.erb

Handle nil cases
Refactored embed video title into a ME plugin