Fix a few crashes
Merge branch 'master' of https://github.com/aidancbrady/Mekanism