Fixes #4884 Do not prematurely exit from file module if src not defined