WP-2231: Prevent undefined index errors.