Effect of migration in a diffusion model for template coexistence in protocells