Fix for emptyenv() singleton problem in R 3.2.0