Ensure post form is available before setting the hash.