Experiment Investigating the Connection between Weak Values and Contextuality