Simple checks could prevent a much bigger problem.