SEO fixes when the MEAN-SEO module is used

Fixes for various crashes when the MEAN-SEO module is used and when receiving encoded inbound links from external websites. Issues were found by inbound traffic at talentblok.com.