fixed problem with handleOpenURL from background, check for empty params in registerDevice