Update UploadHandler.php

line #250 causes the following error on PHP version < 5.3