Before you walk away from your mortgage, read this. Unexpected tax consequences could affect you.