Update to check if post_type is set....

It doesn’t seem to be when saving a menu for example