fixing Drupal issue #1851398 with patch from its #0 comment (entitycache-numeric-ids.patch)