Fix REST header check for auxpow headers.

Those can be longer, thus take that into account.  Also perform the
check actually on an auxpow header.