Revert logic to throw error if JS module does not resolve

Signed-off-by: Simon Bailey <simon@newtriks.com>