Details

Description

This would never occur normally in production and thus is difficult to test, but if there's an old work in the database with content that the sanitizer completely strips out (say an old vid embed that's no longer valid), then you get empty text, and if you try to run the word counter on that, you get a 500 error. The desired behavior should be that if you ask for the word count of an empty string, it returns 0 and doesn't error.