Random Redirect: avoid notices on empty category archive pages

Reported here:
https://wordpress.org/support/topic/fatal-errorwp-dpphp-and-notice-errorclassjetpack-post-imagesphp?replies=3#post-6201968