Description
The user should have at least one available template to be able to edit a Post Function.
Right now, an Internal Server Error occurs if no templates were found. Although, it will assign a different existing template if the previous one was deleted.