Fixed crash on invalid content with supported extension in binary directory