fixed the bug of NullPointerExeption while mode parameter is not provided for prepareRepoRegistration.action
fixed the bug of NullPointerExeption while mode parameter is not provided for prepareRepoRegistration.action