fix wicked_pdf_asset_path in Rails 4 with asset_host enabled

https://github.com/mileszs/wicked_pdf/issues/284

I've added mocha for easier testing. Feel free to modify or ask me to me to. thanks!