fix express related search crash when base query is None