Prevent poltergeist to reraise js errors in ruby