[api] nicer exception for unknown projects - fixes #441
[webui] try expand=0 before redirecting back