PHP error fixed when field has no URL