Check for require before checking for Stylus

Don't run the try block if require isn't available. Try blocks can be
expensive in the browser, especially when an exception is expected.