Store error generated by finfo_open to variable instead of throwing notices and warnings on PHP 5.4+