Revert "undefined method inject for Nil"

This reverts commit 62440083ddcbe053324d8eaad6ca62f4321ac590.