Check if the amount total is zero and in that case doesnt let you Validate de invoice.
Payment Line Create Filter Extension