Viola Davis has admitted she was "a little judgmental" towards Chadwick Boseman on the set of his final film because she didn't know he was so ill.