The patch is made against the current master (development) branch - there have been some other changes to the same file since the 5.0 branch which will prevent the patch being applied directly to the old version.
It can be backported eventually but in the meantime, are you able to test with the master?