Fatal error on History Subpanel

In Admin screen, Developer Tools, if I click on History Subpanel I get:

Fatal error: Call to a member function getRelatedModuleName() on a non-object in /usr/www/users/xxxxxxx/modules/Configurator/views/view.historycontactsemails.php on line 93

Running PHP 5.3.27 on a FreeBSD dedicated server at Pair.com.

Are you still experiencing this issue after the usual basic checks of permissions/Quick R & R etc?

Fatal error: Call to a member function getRelatedModuleName() on a non-object in /usr/www/users/xxxxx/xxxxxxsuite/modules/Configurator/views/view.historycontactsemails.php on line 93

Yes. I get it on PHP 5.3 and 5.4. I did the Quick Repair. Permissions are set correctly. The code is crashing:

$bean->load_relationships();
            foreach ($bean->get_linked_fields() as $fieldName => $fieldDef) {
                if ($bean->$fieldName->getRelatedModuleName() == 'Contacts') {
                    $modules[$moduleName] = array(
                        'module' => $moduleName,
                        'label' => translate($moduleName),
                        'enabled' => empty($fieldDef['hide_history_contacts_emails'])
                    );
                    break;

on the: if ($bean->$fieldName->getRelatedModuleName() == ‘Contacts’) {

line.

Suggestions?