Fixed Security in Export Module

No XLS file is generated if the report ID is not valid