Fix missing null checkfor inv tweaks integration