'NoneType' fix

https://github.com/Arceliar/bmwrapper/issues/7