Fixed a NullPointerException in BetterPistons.