Fix notice if there is no valid JSON