Content type slug returns blank

When editing a page url the contenttypeslug can be sent as blank forcing an error.

This isn't a solution, but more of a patch so I could continue using the CMS.