[Bugfix] avoid bool mat_is_loaded from being potentially unintitialized