Director Rebecca Zlotowski veers too much in the direction of comedy but Foster's presence keeps the film on an even keel.