Added a check to treat null_types as zeros when casted to integers. This should not be necessary when writing out dex files as it can only happen if the type DexNullTransformer is bugyy (which is the case, someone has to look into this later), but better be safe than sorry.