Fixes PHP warnings in monitor for mem and clamav See merge request !1810
mentioned in commit a1fa5323
mentioned in commit a139dde6