Issue #3372728 by hitesh-jain, drunken monkey: Fixed uncaught TypeError during indexing with PHP 8 in rare situations.