Fix NPE when no data is set on the result