Fix an invalid filepath if entity property is null or empty

In the FileManagement twig extension, if the photo property is null or empty, the result is an invalid file path.
The extension must return null in this case.