As of Play 2.3.6, it more accurately chooses its class loader which should prevent the null workaround when trying to find the Nashorn JS engine. Test if that hypothesis is true and remove the null argument if it is no longer needed.
The class loader fix: playframework/playframework#3420