Fixes a bug if module=index is called with no ext-sql_patches