Fix #1299: pass fileExists as global function for template, accept null/undefined as param
Fix #1299: pass fileExists as global function for template, accept null/undefined as param

ryanswanson/gitbook,gencer/gitbook,gencer/gitbook,GitbookIO/gitbook,strawluffy/gitbook,tshoper/gitbook,tshoper/gitbook