fallback for bad calls to the post_class filter. Closes #3463