Fixing fatal error where a post with no categories was failing.