The top court was hearing a habeas corpus petition filed by Anju Devi, Subhash's mother, seeking custody of her four-year-old grandson