Added check for the empty service key.