Add jQuery version check to existing jQuery presence check

Fixes #14809.
Closes #14825.