Add warning message when setting invalid period

* gnc-budget.c: Add a PWARN message
* test/utest-Budget.c: Update unit test to expect the
  warning.