Fix registration problem

Implemented the fix described by alexsms on
https://github.com/coto/gae-boilerplate/issues/236#issuecomment-16306657