[#1404] check for null before using it
[#1404] check for null before using it

PaulVanSchayck/irods,janiheikkinen/irods,PaulVanSchayck/irods,PaulVanSchayck/irods,janiheikkinen/irods,leesab/irods,janiheikkinen/irods,leesab/irods,janiheikkinen/irods,janiheikkinen/irods,PaulVanSchayck/irods,PaulVanSchayck/irods,janiheikkinen/irods,leesab/irods,janiheikkinen/irods,leesab/irods,PaulVanSchayck/irods,janiheikkinen/irods,leesab/irods,PaulVanSchayck/irods,janiheikkinen/irods,PaulVanSchayck/irods,leesab/irods,PaulVanSchayck/irods,leesab/irods