handle empty post slug error