fixed edit_post_category

get_category provides still the old cat data in edit_category action
added check for available post data in edit_post_category