Fixing undefined offset notice when a field is empty.