Fix conflict with other inventory modification plugins (like JSNONAPI) in offline mode. Double null check removed.