Fixed #4: added a check if jsonString is null