Fix incorrect function calls

- Fixed return type in function call to make it nullable.
- Added form helper to autoload since it's used in all the views.
- Fix typo in memory stored OSPOS settings reference.
This commit is contained in:
Internal Server Error - Gitea: Git with a cup of tea
500 Internal Server Error

Gitea Version: 1.28.0+dev-477-g8b6ad49a5f