compute get_model for unreached heads

Signed-off-by: Andrey Rybalchenko <rybal@microsoft.com>