Applied entityreference 1836106.patch, resolves undefined function fatal error