wiasane: Fixed memory corruption due to access of freed memory

This also led to the situation that the scanner could get stuck
in ADF scanning mode.