fix dead imapStream resource handling
fix dead imapStream resource handling

mikegioia/php-imap,NigelGreenway/php-imap,barbushin/php-imap,shirone/php-imap,escobar022/php-imap-ToDB,ghermans/php-imap-ToDB