Issue #1333542 by das-peter: Fixed Possible issue with EntityCacheControllerHelper::resetEntityCache().