|Megha| returning error if no published course found