Fix JavaScript bug that prevented deleting posts by days and in batches

This was introduced in commit ac3cc7d5ab0f6ca9fc98beff1b3a0602044bb4d9
Update version number for v4.0.1 release
Regenerate pot file for translation