Made search query optional when getting course list for a given term

Now, if no search query is given, it will return the entire course list for that given term