Handle a null script engine in a better manner than just throwing a NullPointerException