Fix bug lasers
Description
Fix a problem of non-associated pointer when one ask the output laser and lasers are not present in the input file.
News snippet
Minor bugfix.
Checklist
-
I have checked that my code follows the Octopus coding standards -
I have added tests for all the new features added in this request.