Fix crashing bugs
Fix crashing bugs

Need to sometimes check for existence before usage. Redmine #4519

T2DREAM/t2dream-portal,T2DREAM/t2dream-portal,T2DREAM/t2dream-portal,ENCODE-DCC/encoded,ENCODE-DCC/encoded,T2DREAM/t2dream-portal,ENCODE-DCC/encoded,ENCODE-DCC/encoded