Misc: Fix a possible assert() failure