Guard against nil stat

I am using bower to manage front-end dependencies and processing them with the asset pipeline in a rails application, and, having forgotten to acquire the dependencies was linking to a non-existent file from a directory controlled by the pipeline.  As a result, sprockets was raising an unexpected exception, so I added a check and raised a standard exception.

Let me know if this needs any additional work.  Thanks!