[#276] Fixes possible NPE when processing data