The only instance in which your vote won't be counted is if you fail to include the signed declaration. If you've got anything else wrong (i.e. put the ballot paper in the wrong envelope), they'll just take the ballot paper out of said envelope & count it.
Wacker. (For free, impartial, Elections advice).