Fix core bug with taxonomy on PHP 5.4+

Apply patch drupal7.entity-system.1525176-143.patch