Fix empty tags and categories in post