Prevent invitation_form.js from breaking

It is being loaded even in pages that don't have the invitation form, so had
to prevent it from breaking.
Fix logo images not being shown after de003dd1d34e8a