Don't try to print file extension in a warning message if it's not available