Safe Reinforcement Learning by Imagining the Near Future