Add check that the require array has a non-zero length.

Fix for issue 91.