Prevent: Fatal error: Call to undefined method stdClass::update() https://www.drupal.org/node/2307873#comment-9033491