Fixes non-working registration

When you jumped of the last registration page, project
registration was not working, because of a failing
cast. This is now fixed.

Closes #70