Issue #419: Fixing notices when upgrading from Drupal 7.

Fixes https://github.com/backdrop/backdrop-issues/issues/419.