Sets $fileUrl to null to avoid PHP notices.