Update lib.php

fix bug (blocage plateform) when it is not possible to extract the content of file