Fixing a problem with gateways finding valid forms.
Includes tests and minor notice/warn cleanup

Change-Id: I916fd29d4084117b6a59fe6fb838586e252023b2

Conflicts:

	tests/AllTests.php
	tests/DonationInterfaceTestCase.php
	tests/includes/test_gateway/test.adapter.php