Stock ledger report cannot neither be printed nor being exported to PDF

Print and PDF commands are not working on Stock Ledger page, also the page is looking very distorted in terms of column layout.
Console is showing the following output

query_report.js:1126 Uncaught TypeError: Cannot read property ‘datamanager’ of null
at QueryReport.get_visible_columns (query_report.js:1126)
at HTMLAnchorElement.action (query_report.js:1441)
at HTMLAnchorElement.dispatch (jquery.min.js:3)