Simple fix for EJS generator case mis-match. Provided a null check for the extension regex match as well.