[ticket/11145] Removed extra testing for existing file errors.

Removed empty($file->error) in if condition and moved if block
under if condition with sizeof($file->error) which is an already
existing test for file errors.

PHPBB3-11145