#58 Fix undefined index warning messages

A fix in line with dave-agilepixel’s github issue.