Terminally ill patients are being denied life insurance payouts before they die because of small print in old policies.