Fix form creation url when object id is 0 (Issue #1466)