Fix conflict with other inventory modification plugins (like JSNONAPI) i...

...n offline mode. Double null check removed.