module: Throw an error when require() isn't called with a string

fixes #4541