Seems like there is an issue with your forward_propagation function. For whatever reason the function is not returning a matrix of the correct shape in this particular test case.
Thank you for your suggestion. I went back and reviewed everything and it appears that I already had everything correct. It must have been an issue related to me initially having the notebook open for a while and then having to re-open it. Perhaps it cleared some of the previously saved variables.