Fixes hasModule for nonexistent program.