Fixed an error in is_top_n

Previously, get_rank would return n which can be compared with <
Now, it will check for None first and if so return False directly